const db = require("../db/index");
const RunSql = async (sql, val) => {
  return new Promise(resolve => {
    db.query(sql, val, (err, result) => {
      if (err) return err;
      resolve(result)
    })
  })
}
exports.getDoorImg = async (req, res) => {
  const searchSql = "select * from DoorWayImg";
  let result = await RunSql(searchSql);
  res.cc('获取成功', 200, result);
  // console.log(result);
}